package com.example.vote.flow.mapper;

import com.example.vote.flow.pojo.entity.User;
import com.example.vote.flow.pojo.vo.UserLoginResultVO;
import com.example.vote.flow.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    int insert(User user);

    int deleteById(Long id);

    int updateById(User user);

    int countByUsername(String username);

    UserVO selectById(Long id);

    UserLoginResultVO selectByUsername(String username);

    List<UserVO> selectAll();
}